package edu.jmu.action.attendance;


import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import edu.jmu.action.BaseAction;
import edu.jmu.bean.PageView;
import edu.jmu.bean.attendance.ManualSign;
import edu.jmu.bean.user.User;
import edu.jmu.service.attendance.ManualSignService;
import edu.jmu.utils.WebUtil;


@Controller
@Scope(value="prototype")
public class InquiryManageAction extends BaseAction<ManualSign>{
	private static final long serialVersionUID = -4680298702412042355L;
	
	@Resource	ManualSignService manualSignService;
	private String startDate;
	private String endDate;
	
	
	//查询历史签到记录
	public String historyInquiry(){
		pageView = new PageView<ManualSign>(maxresult,currentpage);
		String wherejpql = "o.user = ?1";
		pageView.setQueryResult(manualSignService.getScrollData(pageView.getFirstResult(), pageView.getMaxresult(), 
				wherejpql,new User[]{WebUtil.getUser()}));		
		return SUCCESS;
	}

	/** set  */
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	public String getStartDate() {
		return startDate;
	}
	public String getEndDate() {
		return endDate;
	}	
	
}

